package com.qingmi.farmer.data.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 收购信息
 */
public class GrainDemand {

    @SerializedName("GrainDemandId")
    private String id;

    @SerializedName("DemandNum")
    private int demandNum;

    @SerializedName("Grain")
    private Grain grain;

    @SerializedName("Price")
    private double price;

    @SerializedName("Buyer")
    private Buyer buyer;

    //收购开始时间
    @SerializedName("BeginAt")
    private long beginAt;

    //收购截至时间
    @SerializedName("EndAt")
    private long endAt;

    //运输方式Id
    @SerializedName("SupplyTypeId")
    private String supplyTypeId;

    //地址列表
    @SerializedName("Addresses")
    private List<Address> addresses;

    //运送方式
    @SerializedName("SupplyType")
    private List<Delivery> deliveries;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getDemandNum() {
        return demandNum;
    }

    public void setDemandNum(int demandNum) {
        this.demandNum = demandNum;
    }

    public Grain getGrain() {
        return grain;
    }

    public void setGrain(Grain grain) {
        this.grain = grain;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Buyer getBuyer() {
        return buyer;
    }

    public void setBuyer(Buyer buyer) {
        this.buyer = buyer;
    }

    public long getBeginAt() {
        return beginAt;
    }

    public void setBeginAt(long beginAt) {
        this.beginAt = beginAt;
    }

    public long getEndAt() {
        return endAt;
    }

    public void setEndAt(long endAt) {
        this.endAt = endAt;
    }

    public String getSupplyTypeId() {
        return supplyTypeId;
    }

    public void setSupplyTypeId(String supplyTypeId) {
        this.supplyTypeId = supplyTypeId;
    }

    public List<Address> getAddresses() {
        return addresses;
    }

    public void setAddresses(List<Address> addresses) {
        this.addresses = addresses;
    }

    public List<Delivery> getDeliveries() {
        return deliveries;
    }

    public void setDeliveries(List<Delivery> deliveries) {
        this.deliveries = deliveries;
    }
}
